<template>
  <el-menu>
    <menu-item :items="items" @command="$emit('command', $event)" />
  </el-menu>
</template>

<script lang="ts" setup>
  import MenuItem from './EpxMenuItem.vue';
  import { Menu } from './menu';

  defineProps<{
    items: Array<Menu>;
  }>();

  defineEmits(['command']);
</script>

<style scoped></style>
